<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>brand</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <link rel="https://cdn.bootcss.com/bootstrap-table/1.12.1/bootstrap-table.css">
    <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap-table/1.12.1/bootstrap-table.js"></script>
    <link rel="stylesheet" href="carSeries.css">
    <script src="carSeries.js"></script>
    <script src="js/series.js"></script>
    <script src="js/addSeries.js"></script>
    <script src="js/editSeries.js"></script>
</head>

<body>
    <div class="series">
        <!-- 面包屑 -->
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="carSeries.html">品牌</a></li>
                <li class="breadcrumb-item active"><a onclick="seriesRefresh()">系列</a></li>
            </ol>
        </nav>
    </div>
    <div class="contents">
        <div class="seriesSearch">
            <!-- 搜索栏 -->
            <div class="check">
                <form class="bs-example bs-example-form" role="form">
                    <!-- 新增系列 -->
                    <button type="button" class="btn btn-warning btn-sm add" onclick="addSeries()">
                        新增系列 <span class="glyphicon glyphicon-pencil"></span>
                    </button>
                </form>
            </div>
            <table class="table table-bordered table-hover" id="seriestable">
            </table>
        </div>
        <!-- 影藏系列添加 -->
        <div class="seriesAdd">
            <form class="form-inline">
                <div class="form-group">
                    <span>*</span><label for="usr"> 系 列 名 称 :</label>
                    <input type="text" class="form-control" id="addSeries" placeholder="新增系列">
                    <!-- 隐藏获取到的系列id -->
                    <input type="hidden" class="form-control" id="brandidS">
                    <!-- 保存返回按钮 -->
                    <button type="button" class="btn btn-primary" onclick="addsaveSeries()">保存</button>
                    <button type="button" class="btn btn-primary" onclick="backSeries()">返回</button>
                </div>
            </form>
        </div>
        <!-- 系列编辑 -->
        <div class="seriesEdit">
                <form class="form-inline">
                    <div class="form-group">
                        <span>*</span><label for="usr"> 系 列 名 称 :</label>
                        <input type="text" class="form-control" id="seriesName" placeholder="name">
                        <input type="hidden" class="form-control" id="seriesId">
                        <!-- 保存返回按钮 -->
                        <button type="button" class="btn btn-primary" onclick="editsaveSeries()">保存</button>
                        <button type="button" class="btn btn-primary" onclick="backSeries()">返回</button>
                    </div>
                </form>
            </div>
    </div>
            <!-- 模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    admin.52carlife.com显示
                </h4>
            </div>
            <div class="modal-body">
                <span id="modal-input">确认停用</span>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button id="btn_ok" type="button" class="btn btn-primary">
                    提交更改
                </button>
            </div>
        </div>
    </div>
</div>
</body>
</html>